home *** CD-ROM | disk | FTP | other *** search
- class Sound
- {
- var duration // The number of milliseconds a sound lasts.
- var id3 // Provides access to the metadata that is part of an MP3 file.
- var position // The number of milliseconds a sound has been playing.
-
- function getTransform() // Returns the sound transform information for the specified Sound object set with the last "Sound.setTransform()" call.
- function getVolume() // Returns an integer(0-100) indicating the sound volume level.
- function loadSound(url, isStreaming) // Loads an MP3 file into a Sound object.
- function setPan(pan) // Sets the pan level to decide how the sound is played in the left and right channels.
- function setTransform(soundTransformObject) // Sets the sound transform information for a Sound object.
- function setVolume(volume) // Sets the volume for the Sound object.
- function start(secondOffset, loop) // Starts playing the sound from the beginning or at the point the "secondOffset" parameter specifies.
- function stop(idName) // Stops all sounds being played currently or the sound specifiedd in the "idName" parameter.
- function attachSound(idName) // Attaches the sound specified in the "idName" parameter to the specified Sound object.
- function getBytesLoaded() // Returns the number of bytes the specified Sound object has loaded.
- function getBytesTotal() // Returns the number of bytes, indicating the size of the specified Sound object.
- function getPan() // Controls the left-right balance of the sounds in a SWF file.
-
- function onID3() // Provides access to ID3 data without polling.
- function onLoad() // Invoked automatically when a sound loads.
- function onSoundComplete() // Triggers events in a SWF file when a sound finishes playing.
- }
-